package main

func Sum(vals []int) int {
	var res int
	for _, v := range vals {
		res = res + v
	}
	return res
}

func SumInt64(vals []int64) int64 {
	var res int64
	for _, v := range vals {
		res = res + v
	}
	return res
}

func SumInt32(vals []int32) int32 {
	var res int32
	for _, v := range vals {
		res = res + v
	}
	return res
}
